const Redis = require('ioredis')
const config = require('../config')
const redis = new Redis(config.redis)

const setredis = (key, val) => {
  redis.set(key,val)
}

const getrediskey = (keyname) => {
  return redis.get(keyname)
}

module.exports = {
    setredis,
    getrediskey
}